From: Andrew Cooper Date: Thu, 19 Jul 2012 14:47:28 +0000 (+0100) Subject: x86/numa: Remove warning about small NUMA nodes X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~8183 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=693defb6aef6085213fb89a2628dcfa7ed207cf6;p=xen.git x86/numa: Remove warning about small NUMA nodes This logic came with the other NUMA logic from Linux 2.6.16 in c/s 11893:f312c2d01d8b. It appears that the Xen memory management subsystem does not suffer from the expressed problems. Furthermore, NUMA nodes with no memory are now quite easy to find, and are not BIOS bugs in the SRAT ACPI table. Signed-off-by: Andrew Cooper Committed-by: Keir Fraser --- diff --git a/xen/arch/x86/srat.c b/xen/arch/x86/srat.c index cee665ae90..d774dc34b9 100644 --- a/xen/arch/x86/srat.c +++ b/xen/arch/x86/srat.c @@ -34,9 +34,6 @@ static int num_node_memblks; static struct node node_memblk_range[NR_NODE_MEMBLKS]; static int memblk_nodeid[NR_NODE_MEMBLKS]; -/* Too small nodes confuse the VM badly. Usually they result - from BIOS bugs. */ -#define NODE_MIN_SIZE (4*1024*1024) static int node_to_pxm(int n); @@ -454,10 +451,6 @@ int __init acpi_scan_nodes(u64 start, u64 end) printk(KERN_WARNING "SRAT: Node %u has no memory. " "BIOS Bug or mis-configured hardware?\n", i); - else if (size < NODE_MIN_SIZE) - printk(KERN_WARNING "SRAT: Node %u has only %"PRIu64 - " bytes of memory. BIOS Bug?\n", i, size); - setup_node_bootmem(i, nodes[i].start, nodes[i].end); } for (i = 0; i < nr_cpu_ids; i++) {